import { merge } from 'lodash-es';

export const useGlobalState = defineStore('globalState', () => {
  const globalState = ref({});
  const setGlobalState = props => {
    globalState.value = merge(globalState.value, props);
  };
  return { globalState, setGlobalState };
});
